//
//  CALayer+Addition.h
//  dingding
//
//  Created by dingding on 15/12/10.
//  Copyright © 2015年 dingding. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface NSMutableDictionary (AllType)
-(void)putInt:(int)data key:(NSString*)key;
-(void)putStr:(NSString*)data key:(NSString*)key;
-(void)putDouble:(double)data key:(NSString*)key;
-(void)putFloat:(float)data key:(NSString*)key;
-(void)putBool:(BOOL)data key:(NSString*)key;
-(void)putLong:(long long)data key:(NSString*)key;
-(void)putArray:(NSArray*)array key:(NSString*)key;

-(int)getInt:(NSString*)key;
-(NSString*)getStr:(NSString*)key;
-(double)getDouble:(NSString*)key;
-(float)getFloat:(NSString*)key;
-(BOOL)getBool:(NSString*)key;
-(long long)getLong:(NSString*)key;
-(NSObject*)getObject:(NSString*)key;
-(NSDictionary*)getDict:(NSString*)key;
@end

@interface NSDictionary (AllType)
-(int)getInt:(NSString*)key;
-(NSString*)getStr:(NSString*)key;
-(double)getDouble:(NSString*)key;
-(float)getFloat:(NSString*)key;
-(BOOL)getBool:(NSString*)key;
-(long long)getLong:(NSString*)key;
-(NSArray*)getArray:(NSString*)key;
-(NSObject*)getObject:(NSString*)key;
-(NSDictionary*)getDict:(NSString*)key;
@end
